package io.websocketdemo.my;

import android.util.Log;

import org.webrtc.CapturerObserver;
import org.webrtc.VideoFrame;

public class MyCapturerObserver implements CapturerObserver {
    final String TAG = "ucc";
    CapturerObserver observer;

    public MyCapturerObserver(CapturerObserver observer) {
        this.observer = observer;
    }

    @Override
    public void onCapturerStarted(boolean b) {
        observer.onCapturerStarted(b);
    }

    @Override
    public void onCapturerStopped() {
        observer.onCapturerStopped();
    }

    @Override
    public void onFrameCaptured(VideoFrame videoFrame) {
//        Log.i(TAG, "onFrameCaptured");
        observer.onFrameCaptured(videoFrame);
    }
}
